package com.example.auth.model.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户-角色 关系表
 * </p>
 *
 * @author xijie.wang
 * @since 2022-04-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "SysUserRoleMapping对象", description = "用户-角色 关系表")
public class SysUserRoleMapping implements Serializable {

	private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;

	@ApiModelProperty(value = "用户编号")
	@TableField("userId")
	private Integer userId;

	@ApiModelProperty(value = "角色编号")
	@TableField("roleId")
	private Integer roleId;

	@ApiModelProperty(value = " 是否删除  0-否 1-是")
	private Integer deleted;

	@ApiModelProperty(value = "创建时间")
	@TableField("createTime")
	private Date createTime;

	@ApiModelProperty(value = "更新时间")
	@TableField("updateTime")
	private Date updateTime;


}
